.class public Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private b:Landroid/widget/EditText;

.field private c:Ljava/lang/String;

.field private d:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)Lcom/waiqin365/base/login/mainview/TitleBar;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->d:Landroid/widget/ImageView;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 3

    const/4 v2, 0x0

    const v0, 0x7f0c0776

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->d:Landroid/widget/ImageView;

    const v0, 0x7f0c0773

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    const v0, 0x7f0c0775

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v1, 0x7f080411

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    const v1, 0x7f080136

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    const-string/jumbo v1, "#bdbdbd"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setTextColor(I)V

    return-void
.end method

.method public b()V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "groupname"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const v0, 0x7f0802c7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->getString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, ""

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->d:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->d:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/bm;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/bm;-><init>(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/bn;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/bn;-><init>(Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/view/View;)V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->c:Ljava/lang/String;

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->finish()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "groupname"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 v0, -0x1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->finish()V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c008a -> :sswitch_0
        0x7f0c0093 -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030142

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->a()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/GroupChageNameActivty;->b()V

    return-void
.end method
